package com.powernode.model.entity.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.powernode.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = false)
@Data
@Schema(description = "OrderProfitSharing")
@TableName("order_profit_sharing")
public class OrderProfitSharing extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "订单ID")
    @TableField("order_id")
    private Long orderId;
    @Schema(description = "规则ID")
    @TableField("rule_id")
    private Long ruleId;
    @Schema(description = "订单金额")
    @TableField("order_amount")
    private BigDecimal orderAmount;
    @Schema(description = "微信支付平台费率")
    @TableField("payment_rate")
    private BigDecimal paymentRate;
    @Schema(description = "微信支付平台费用")
    @TableField("payment_fee")
    private BigDecimal paymentFee;
    @Schema(description = "配送员代缴个税税率")
    @TableField("driver_tax_rate")
    private BigDecimal driverTaxRate;
    @Schema(description = "配送员税率支出费用")
    @TableField("driver_tax_fee")
    private BigDecimal driverTaxFee;
    @Schema(description = "平台分账收入")
    @TableField("platform_income")
    private BigDecimal platformIncome;
    @Schema(description = "配送员分账收入")
    @TableField("driver_income")
    private BigDecimal driverIncome;
    @Schema(description = "分账状态（1：未分账、2：已分账）")
    @TableField("status")
    private Integer status;
}